<?php 
$subject_id = $_SESSION['subject_id'];
$pagetitle = $_SESSION['pagetitle'];
$action = $_SESSION['action'];
$subject_name = $_SESSION['subject_name'];
$test_percentage = $_SESSION['test_percentage'];
$button = $_SESSION['button'];
?>
<form class="gform" action="?<?php htmlout($action);?>" method="post">
	<!-- Form Title-->
	<div class="entry legend"><?php echo $pagetitle?></div>
	
	<?php include '/includes/error-out.php' ?>
	
	<!-- Subject ID -->
	<div class="entry">
		<label class="label" for="subject_id" >Mã Môn Học</label>
		<input class="field" maxlength="4" type="text" name="subject_id" id="subject_id" value="<?php htmlout($subject_id);?>" />
	</div>
	
	<!-- Subject Name -->
	<div class="entry">
		<label class="label" for="subject_name" >Tên Môn Học</label>
		<input class="field" type="text" name="subject_name" id="subject_name" value="<?php htmlout($subject_name);?>" />
	</div>
	
	<!-- Percentage of testing score -->
	<div class="entry">
		<label class="label" for="" >Phần Trăm Kiểm Tra</label>
		<input class="field" type="text" name="test_percentage" id="test_percentage" value="<?php htmlout($test_percentage);?>" />
	</div>
	
	<!-- Submit -->
	<div class="entry">
		<input type="hidden" name="old_subject_id" id="old_subject_id" value="<?php htmlout($subject_id);?>" />
		<input class="button" type="submit" value="<?php htmlout($button);?>" />
	</div>
</form>